#!/bin/ksh
read TOTAL USED <<- EOF
	$(swapctl -s | cut -d ' ' -f 2,6)
EOF
PERCENT=$(( ${USED%%k} / ${TOTAL%%k} ))
echo "generic,g,swap,0,100,$PERCENT"
